home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CyberMycha 2001 August
/
CMycha200108.iso
/
Zaczarowane
/
start.swf
/
scripts
/
DefineButton2_757
/
BUTTONCONDACTION on(release).as
< prev
Wrap
Text File
|
2001-06-06
|
3KB
|
59 lines
on(release){
stopDrag();
_root.waga24 = "";
x = getProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _X);
y = getProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _Y);
if(_root.stan == "pakowanie")
{
if(!_root.mc_scroll.mc_rzeczy.mc_r24.zapakowany == true)
{
_root.kupa = x + "," + y;
if(-350 < getProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _X) && getProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _X) < -200 && -500 < getProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _Y) - my && getProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _Y) - my < -400)
{
setProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _visible, false);
set(_root.mc_scroll.mc_rzeczy.mc_r24.zapakowany,true);
_root.mc_scroll.mc_rzeczy.mc_r24.zapakowany = true;
_root.mc_scroll.mc_rzeczy.mc_r24.waga = 0.16;
_root.waga += 0.16;
_root.mc_wskazowka.play();
_root.zapakowany24 = true;
}
else
{
setProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _X, x_pos);
setProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _Y, y_pos);
_root.mc_scroll.mc_rzeczy.mc_r24.zapakowany = false;
}
}
}
if(_root.stan == "las")
{
_root.kupa = x + "," + y;
if(-225 < getProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _X) && getProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _X) < -165 && -555 < getProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _Y) - my && getProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _Y) - my < -495)
{
setProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _X, -196);
setProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _Y, -518 + my);
_root.mc_scroll.mc_rzeczy.mc_r24.gotoAndStop(2);
_root.mc_scroll.mc_rzeczy.mc_r24.ubrany = true;
if(_root.mc_scroll.mc_rzeczy.mc_r23.ubrany == true || _root.mc_scroll.mc_rzeczy.mc_r9.ubrany == true)
{
_root.mc_scroll.mc_rzeczy.mc_r24._visible = false;
}
if(_root.mc_scroll.mc_rzeczy.mc_r22.ubrany == true)
{
_root.mc_scroll.mc_rzeczy.mc_r22.ubrany = false;
_root.mc_scroll.mc_rzeczy.mc_r22._visible = true;
_root.mc_scroll.mc_rzeczy.mc_r22._x = x_pos;
_root.mc_scroll.mc_rzeczy.mc_r22._y = y_pos;
_root.mc_scroll.mc_rzeczy.mc_r22.gotoAndStop(1);
}
}
else
{
setProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _X, x_pos);
setProperty(_root.mc_scroll.mc_rzeczy.mc_r24, _Y, y_pos);
_root.mc_scroll.mc_rzeczy.mc_r24.ubrany = false;
}
}
}